<? if (isset($this->user)) : ?>
    Xin chào <strong><?= $this->user->name ?></strong>&nbsp;|&nbsp;<a href="/user/logout">Thoát</a>
<? else : ?>
<form action="/user/login" method="post">
    <table cellspacing="0" cellpadding="2" border="0">
        <tr>
            <td><strong>Tên truy cập</strong></td>
            <td><input type="text" id="username" class="text" name="username" style="width: 180px" value="<? echo $this->username?>"/></td>
        </tr>
        <tr>
            <td><strong>Mật khẩu</strong></td>
            <td><input type="password" id="password" class="text" name="password" style="width: 180px"/></td>
        </tr>
        <tr>
            <td></td>
            <td>
              <input type="checkbox" title="Ghi nhớ thông tin tài khoản cho lần sau" id="saveme" name="saveme" value="1"/>
              <label for="saveme">Ghi nhớ thông tin</label>
        </tr>                       
        <tr>
            <td> </td>
            <td><input type="submit" title="Đăng nhập" value="Đăng nhập" id="Login" class="button"/></td>    
        </tr>
    </table>
</form>
<? endif ?>
